package com.shtel.paas.monitorcenter.config.management.whiteListConfig.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListEntity;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListHostIdDto;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListResponseDto;
import com.shtel.paas.monitorcenter.config.management.whiteListConfig.entity.WhiteListRulesDto;

public interface WhiteListConfigMapper {

	List<WhiteListResponseDto> selectAll(
			@Param(value = "hostId") String hostId,
			@Param(value = "whiteruleid") String whiteruleid);

	List<WhiteListHostIdDto> selectHostId();

	List<WhiteListRulesDto> selectRules();

	int insertWhiteList(WhiteListEntity entity);

	/**
	 * 白名单配置页面删除配置dao方法
	 * 
	 * @param: id
	 * @author: zhangyy
	 * @Date: 2018.05.16
	 * @return: boolean
	 */
	boolean delectWhiteList(String id);
}
